package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.entity.User;
import com.qf.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author 阿亘
 * @date 2023/07/14
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    @Override
    public User findUserByAccount(String account) {
        return userDao.findUserByAccount(account);
    }

    @Override
    public User getUser(String account, String password) {
        return userDao.getUser(account,password);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public User findUserByUid(Integer userid) {
        return userDao.findUserByUid(userid);
    }

    @Override
    public User listBooksByUserid(Integer userid) {
        return userDao.listBooksByUserid(userid);
    }
}
